<?php
/**
 * 脚本名：connConfig.php
 * 说明：mysql和redis连接参数设置类
 */

class Config {
	//public static $mysql_config;

	/*function __construct()
	{
		$dir = $_SERVER['DOCUMENT_ROOT']."dbconfig.php";
		$runtime_config=include $dir;
		self::$mysql_config=$runtime_config[0];
	}*/
    //mysql连接配置
    public static $mysql_config = array(
			//'host' => '127.0.0.1',
			'host' => '',
			'port' => '',
			'username' => '',
			'password' => '',
			'dbname' => '',
			'charset' => '',
	);
    	
	 
    public static $mod = 1;
    
    //redis连接配置
    public static $redis_data_config = array(
        'redis0' => array('host' => '', 'port' => '', 'pass' => '')
    );


	public static $ip_server_confing = array(
	      'ip' => '',    //游戏服务器ip
		  'port'=> '',   //游戏服务器端口   
	);
	
	//上报数据参数配置
	public static $data_report = array(
	       'ip' => '',   
	       'port'=> '' 
	);
	
	//上报数据请求token登录参数
    public static $info_report = array(
	    'cid'=>'',    //游戏id
		'user'=>'',   //账号
		'pass'=>'',   //密码
		'reportTokenTime'=>43200
	);
	
	public static $logger = null;
	public static $loggerError = null;
	public static $loggerDebug = null;
	
}

Config::$logger =  new Logger("info");
Config::$loggerError =  new Logger("error");
Config::$loggerDebug =  new Logger("debug");
?>
